package com.joekai.view_demo.red_package;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.joekai.view_demo.R;

public class RedPackageActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_red_package);
        RedPackageView red_pack_view = findViewById(R.id.red_pack_view);
        red_pack_view.setOnClickListener((v) -> {
            red_pack_view.setAnimationProgress((int) (red_pack_view.getProgress()+1));
        });
    }
}